package demo07.remote.object;

//立体音响
public class Stereo {
	String location;

	public Stereo(String location) {
		this.location = location;
	}

	public void on() {
		System.out.println(location + " 立体声是开着的");
	}

	public void off() {
		System.out.println(location + " 立体声是关闭的");
	}

	public void setCD() {
		System.out.println(location + " 立体声设置为CD输入。");
	}

	public void setDVD() {
		System.out.println(location + "立体声设置为DVD输入。");
	}

	public void setRadio() {
		System.out.println(location + " 设为收音机");
	}

	public void setVolume(int volume) {
		System.out.println(location + " 立体声音量设置为 " + volume);
	}

}
